app.controller('loginWXPageCtrl',function($scope, $cordovaCamera,PopupService,$http,$myconfig,$state,$stateParams, $ionicLoading, $timeout, $rootScope,$ionicConfig){
    $scope.wxinfo = JSON.parse(localStorage.getItem('wxinfo'));

    //前往登录并绑定
    $scope.toLogin = function(){
        $state.go('app.logintowx');
    };

    //注册用户并绑定微信账户
    $scope.registerWX = function(){
        $state.go('app.register');
    };

    $scope.$on('$ionicView.enter', function(){

        $ionicConfig.views.swipeBackEnabled(false);

    });

});
